<?php
/**
 * Copyright (C) 2011 Salvador Torres e Luiz Eduardo Alves Santos
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

session_start();
/* SERVER char ['D', 'H', 'P'] */
define('SERVER', 'D');

//Constantes do Sistema
define('SYS_MODULE', 'genesis-php-framework-svn');
define('SYS_TITLE', 'Genesis PHP Framework');
define('SYS_VERSION', '1.0');
define('SYS_THEME', 'bootstrap');
define('SYS_UI_JQUERY', 'custom-theme'); //'smoothness'
define('SYS_UI_JQUERY_V', '1.8.14'); //Versão do UI
define('SYS_LIB_DEFAULT', 'jquery,jquery.ui,jalert,genesis,php.js');

define('SYS_CHARSET', 'utf-8'); //Charset para a aplicação

//Constantes de Contatos
define('SYS_EMAIL_CONTATO', 'Contato<contato@sistema.com>');
define('SYS_EMAIL_NOREPLY', 'Não Responda<nao_responda@sistema.com>');
define('SYS_EMAIL_SUPORT', 'Suporte<suporte@sistema.com>');

//Constantes URL
define('URL_SERVER', 'http://localhost/');
define('URL_SYS', URL_SERVER . SYS_MODULE . '/');
define('URL_GENESIS', URL_SERVER . SYS_MODULE . '/' . 'genesis/');
define('URL_SYS_THEME', URL_SYS . 'themes/' . SYS_THEME . '/');
define('URL_SYS_LOGO', URL_SYS_THEME . '/img/logo.png');

define('URL_ERRO', URL_SYS . 'erro.php');
define('URL_LOGIN', URL_SYS . 'login.php');
define('URL_LOGOUT', URL_SYS . 'logout.php');

define('URL_STATIC', 'http://localhost/' . SYS_MODULE . '/');
define('URL_STATIC_GN', URL_STATIC . 'genesis/');

//Constantes caminho absoluto
define('ROOT_SERVER', 'D:\xampp\htdocs\\');
define('ROOT_SYS', ROOT_SERVER . SYS_MODULE . '/');
define('ROOT_SYS_INC', ROOT_SYS . 'inc/');
define('ROOT_SYS_CLASS', ROOT_SYS . 'class/');
define('ROOT_SYS_ADMIN', ROOT_SYS . 'admin/');
define('ROOT_GENESIS', ROOT_SERVER . SYS_MODULE . '/' . 'genesis/');
define('ROOT_SYS_THEME', ROOT_SYS . 'themes/' . SYS_THEME . '/');

define('GOOGLE_API_KEY', 'AIzaSyAwh7GXSsiSJuFO2PlSxOQsGGDZrCtETUg');//Chave para o uso do Encurtador de URL e outros serviços google


require_once(ROOT_SYS_INC . 'conf/mysql.conf.php');
require_once(ROOT_SYS_INC . 'functions.php');
require_once(ROOT_GENESIS . 'genesis.php');

$genesis = new Genesis(SYS_MODULE);

require_once(ROOT_SYS_THEME . 'header.class.php');
require_once(ROOT_SYS_THEME . 'footer.class.php');


?>